﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true"
    CodeBehind="ListMenuAdmin.aspx.cs" Inherits="SES.CMS.AdminCP.ListMenuAdmin" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2" Namespace="DevExpress.Web.ASPxTreeList"
    TagPrefix="dxwtl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2 style="text-align: left; float: left;">
        Danh sách Menu Admin</h2>
    <dxwtl:ASPxTreeList ID="tlMenu" runat="server" AutoGenerateColumns="False" Width="100%"
        ClientInstanceName="tlMenu" KeyFieldName="MenuAdminID" ParentFieldName="ParentID"
        EnableCallbacks="False" OnNodeDeleted="tlMenu_NodeDeleted" OnStartNodeEditing="tlMenu_StartNodeEditing">
        <SettingsPager Mode="ShowPager" PageSize="100">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <SettingsBehavior AllowFocusedNode="True" />
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <Columns>
            <dxwtl:TreeListTextColumn FieldName="MenuAdminID" Name="clMenuID" Visible="False" VisibleIndex="0">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Tiêu đề" Width="60%" Name="Name" VisibleIndex="0"
                FieldName="Name">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Link" Width="30%" FieldName="Link" Name="clLink"
                VisibleIndex="1">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Phân loại" Width="10%" Name="clType" Visible="false"
                VisibleIndex="2">
                <DataCellTemplate>
                    <%#ReturnType(Eval("Type")) %>
                </DataCellTemplate>
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Thứ tự" Width="10%" FieldName="Order" Name="clOrderID"
                VisibleIndex="3">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListCommandColumn Caption="Sửa" VisibleIndex="4" Width="5%">
                <EditButton Text="Sửa" Visible="True">
                </EditButton>
            </dxwtl:TreeListCommandColumn>
            <dxwtl:TreeListCommandColumn VisibleIndex="5" Caption="Xóa" Width="5%">
                <DeleteButton Text="Xóa" Visible="True">
                </DeleteButton>
            </dxwtl:TreeListCommandColumn>
        </Columns>
    </dxwtl:ASPxTreeList>
    <div style="float: left; width: 100%; margin: 10px 0 10px 0;">
        <asp:HyperLink runat="server" ID="hplAdd" NavigateUrl="/AdminCP/Menu.aspx" CssClass="button-gg-green" Visible="false"
            Text="Thêm mới"></asp:HyperLink>
    </div>
</asp:Content>
